package com.reagent.system.entity.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
public class GoodsExcel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "商品ID")
    private Integer id;

    @ExcelProperty(value = "商品名称")
    private String name;

    @ExcelProperty(value = "商品类别")
    private String type;

    @ExcelProperty(value = "商品库存")
    private Integer num;

    @ExcelProperty(value = "商品图片")
    @ExcelIgnore
    private String images;

    @ExcelProperty(value = "商品价格")
    private BigDecimal price;

    @ExcelProperty(value = "是否上架")
    private String status;

    @ExcelProperty(value = "添加时间")
    private Date createtime;

    @ExcelProperty(value = "更新时间")
    private Date updatetime;

    @ExcelProperty(value = "对应商家")
    private String uname;

    @ExcelProperty(value = "商品说明")
    private String desc;

}
